home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 16 / AMIGAplus Sonderheft 16 (1998)(ICP)(DE)[!].iso / pd / anwendungen / amisearchii / installation-english < prev    next >
Text File  |  1998-01-03  |  6KB  |  197 lines

  1. ;$VER:AmiSearch installation script
  2.  
  3. (complete 0)
  4. (set @default-dest "Work:")
  5.  
  6. ; Texts
  7.  
  8. (set #Warning-Txt
  9. (cat "Warning !\n\n\n"
  10. "AmiSearch II.2 needs MUI 3.8+ to work.\n\n"
  11. "Without MUI AmiSearch II.2 won't work...\n\n"
  12. ))
  13. (set #Path-Txt
  14. (cat "Please choose target directory."
  15. "An AmiSearchII drawer will be created there."
  16. ))
  17. (set #Path-Help
  18. (cat "This part allows you to choose the directory where AmiSearch II.2 will be copied.\n\n"
  19. "If you're upgrading from version II or II.1 no drawer will be created.\n\n"
  20. "An AmiSearch II drawer is created there, in order to allow a better index handling.\n\n"
  21. "The default one is Work:\n\n\n"
  22. ))
  23. (set #UpdateTxt
  24. (cat "If you are updating from AmiSearch II or II.1 to AmiSearch II.2 you should select\n"
  25. "the directory which contains AmiSearch II's directory when prompted for a \n"
  26. "destination drawer. Files needing an update will be updated automatically.\n\n"
  27. "Warning ! Copy your prolog files if you modified them\n"
  28. "otherwise they will be overwritten !\n\n"
  29. ))
  30.  
  31. ; Main
  32.  
  33. (message #Warning-Txt)
  34. (message #UpdateTxt)
  35. (set target
  36. (askdir (prompt #Path-Txt) (help #Path-Help) (default @default-dest) (newpath)
  37. ))
  38. (set @default-dest (tackon target "AmiSearchII"))
  39. (if (= (exists (tackon target "AmiSearchII")) 0)
  40. (
  41. (makedir (tackon target "AmiSearchII")(infos))
  42. (makedir (tackon target "AmiSearchII/Docs") (infos))
  43. (makedir (tackon target "AmiSearchII/Gfx"))
  44. (makedir (tackon target "AmiSearchII/ArchiveScripts"))
  45. (makedir (tackon target "AmiSearchII/BaseScripts"))
  46. (makedir (tackon target "AmiSearchII/Databases"))
  47. (makedir (tackon target "AmiSearchII/Prologs"))
  48. ))
  49. (copyfiles
  50. (prompt "Copying software")
  51. (help @copy-files-help)
  52. (source "AmiSearchII")
  53. (dest (tackon target "AmiSearchII"))
  54. (infos))
  55.  
  56. (if (= (exists (tackon target "AmiSearchII/AmiSearch2")) 1)
  57. (
  58. (delete (tackon target "AmiSearchII/AmiSearch2") force)
  59. (delete (tackon target "AmiSearchII/AmiSearch2.info") force)
  60. ))
  61.  
  62. (if (= (exists (tackon target "AmiSearchII/ArchiveScripts/AS2H")) 1)
  63. (
  64. (rename (tackon target "AmiSearchII/ArchiveScripts/AS2H") (tackon target "AmiSearchII/ArchiveScripts/AS2H.bak"))
  65. ))
  66. (copyfiles
  67. (prompt "Copying archive handling script (AS2H)")
  68. (help @copy-files-help)
  69. (source "ArchiveScripts/AS2H")
  70. (dest (tackon target "AmiSearchII/ArchiveScripts"))
  71. (infos))
  72.  
  73. (if (= (exists (tackon target "AmiSearchII/ArchiveScripts/AS2Audio")) 1)
  74. (
  75. (rename (tackon target "AmiSearchII/ArchiveScripts/AS2Audio") (tackon target "AmiSearchII/ArchiveScripts/AS2Audio.bak"))
  76. ))
  77. (copyfiles
  78. (prompt "Copying module handling script (AS2Audio)")
  79. (help @copy-files-help)
  80. (source "ArchiveScripts/AS2Audio")
  81. (dest (tackon target "AmiSearchII/ArchiveScripts"))
  82. (infos))
  83.  
  84. (copyfiles
  85. (prompt "Copying DMS archive handling script (DMS2Disk)")
  86. (help @copy-files-help)
  87. (source "ArchiveScripts/DMS2Disk")
  88. (dest (tackon target "AmiSearchII/ArchiveScripts"))
  89. (infos))
  90.  
  91. (copyfiles
  92. (prompt "Copying pictures")
  93. (help @copy-files-help)
  94. (source "Gfx")
  95. (dest (tackon target "AmiSearchII/Gfx"))
  96. (pattern "#?")
  97. (infos))
  98.  
  99. (complete 30)
  100.  
  101. (copyfiles
  102. (prompt "Copying automatic creation scripts")
  103. (help @copy-files-help)
  104. (source "BaseScripts")
  105. (dest (tackon target "AmiSearchII/BaseScripts"))
  106. (pattern "#?")
  107. (infos))
  108.  
  109. (copyfiles
  110. (prompt "Copying prologs")
  111. (help @copy-files-help)
  112. (source "Prologs")
  113. (dest (tackon target "AmiSearchII/Prologs"))
  114. (pattern "#?")
  115. (infos))
  116.  
  117. (if (= (exists "ENVARC:AmiSearch2.config") 1)
  118. (
  119. (copyfiles (prompt "Copying default config file to AS2:") (source "ENVARC/AmiSearch2.config") (dest (tackon target "AmiSearchII")))
  120. )
  121. (
  122. (copyfiles (prompt "Copying default config file to ENVARC:") (source "ENVARC/AmiSearch2.config") (dest "ENVARC:"))
  123. (copyfiles (prompt "Copying default config file to ENV:") (source "ENVARC/AmiSearch2.config") (dest "ENV:"))
  124. ))
  125.  
  126. (complete 40)
  127. (copyfiles (prompt "Copying localisation") (source "Locale/AmiSearch2.cd") (dest "LOCALE:"))
  128. (if (= (exists "MUI:Libs/MUI/NList.mcc") 0)
  129. (
  130. (copyfiles (prompt "Copying MUI Custom Class\n\nNList.mcc\n\n(c) Gilles Masson") (source "Libs/NList.mcc") (dest "MUI:Libs/MUI"))
  131. )
  132. (
  133. (set #nlistvo (getversion "MUI:Libs/MUI/NList.mcc"))
  134. (set #nlistvn (getversion "Libs/NList.mcc"))
  135. (if (< #nlistvo #nlistvn)
  136. (
  137. (copyfiles (prompt "Updating MUI Custom Class\n\nNList.mcc\n\n(c) Gilles Masson") (source "Libs/NList.mcc") (dest "MUI:Libs/MUI"))
  138. ))
  139. ))
  140. (if (= (exists "MUI:Libs/MUI/NListview.mcc") 0)
  141. (
  142. (copyfiles (prompt "Copying MUI Custom Class\n\nNListview.mcc\n\n(c) Gilles Masson") (source "Libs/NListview.mcc") (dest "MUI:Libs/MUI"))
  143. )
  144. (
  145. (set #nlistvo (getversion "MUI:Libs/MUI/NListview.mcc"))
  146. (set #nlistvn (getversion "Libs/NListview.mcc"))
  147. (if (< #nlistvo #nlistvn)
  148. (
  149. (copyfiles (prompt "Updating MUI Custom Class\n\nNListview.mcc\n\n(c) Gilles Masson") (source "Libs/NListview.mcc") (dest "MUI:Libs/MUI"))
  150. ))
  151. ))
  152. (if (= (exists "MUI:Libs/MUI/NListviews.mcp") 0)
  153. (
  154. (copyfiles (prompt "Copying MUI Custom Class\n\nNListviews.mcp\n\n(c) Gilles Masson") (source "Libs/NListviews.mcp") (dest "MUI:Libs/MUI"))
  155. )
  156. (
  157. (set #nlistvo (getversion "MUI:Libs/MUI/NListviews.mcp"))
  158. (set #nlistvn (getversion "Libs/NListviews.mcp"))
  159. (if (< #nlistvo #nlistvn)
  160. (
  161. (copyfiles (prompt "Updating MUI Custom Class\n\nNListviews.mcp\n\n(c) Gilles Masson") (source "Libs/NListviews.mcp") (dest "MUI:Libs/MUI"))
  162. ))
  163. ))
  164.  
  165.  
  166. (complete 50)
  167. (copyfiles
  168. (prompt "Copying manual")
  169. (help @copy-files-help)
  170. (source "Docs/English_Manual.guide")
  171. (dest (tackon target "AmiSearchII/Docs"))
  172. (newname "AmiSearchII.guide")
  173. (infos))
  174.  
  175. (complete 75)
  176.  
  177. (copyfiles
  178. (prompt "Copying ReadMe.mui")
  179. (help @copy-files-help)
  180. (source "Docs/ReadMe.mui")
  181. (dest (tackon target "AmiSearchII/Docs"))
  182. (infos))
  183.  
  184. (set myassign
  185. (cat "ASSIGN AS2: \"" (tackon (expandpath target) "AmiSearchII\" DEFER")
  186. )
  187. )
  188.  
  189. (startup "AmiSearch II"
  190. (command myassign)
  191. (prompt "Adding assign to S:user-startup")
  192. (help @startup-help)
  193. )
  194. (run myassign)
  195.  
  196. (complete 100)
  197.